﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ModelClassesLinqToSql.Domain.Models;

namespace ModelClassesLinqToSql.Domain.Repositories
{
    public interface IMovieRepository
    {
        IQueryable<Movie> GetAll();
        IQueryable<MovieEmployeeJobTitleComposite> GetMoviesAndDirectors();
        Movie GetMovie(int movieId);
        IQueryable<EmployeeJobTitleComposite> GetMovieEmployees(int movieId, IEnumerable<Enums.EmployeeType> employeeTypes = null);
        //EmployeeJobTitleComposite GetEmployeeJobTitle(int movieId, int employeeId, int jobTitleId);
        void AssignMovieEmployee(MovieEmployeeJobTitle movieEmployeeJobTitle);
        void UnassignMovieEmployee(MovieEmployeeJobTitle movieEmployeeJobTitle);
        void SaveMovie();
    }
}
